package com.smartcommunity.entity.building;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "楼栋详情实体")
public class BuildingDetailResp {

    @ApiModelProperty(value="楼栋ID ",name="id")
    private Integer id;

    @ApiModelProperty(value="小区编码,多小区以逗号分隔",name="villageCode")
    private String villageCode;

    @ApiModelProperty(value="楼栋编号",name="buildingNo")
    private String buildingNo;

    @ApiModelProperty(value="楼层数",name="floorTotal")
    private Integer floorTotal;

    @ApiModelProperty(value="户数",name="houseTotal")
    private Integer houseTotal;

    @ApiModelProperty(value="经度",name="lon")
    private Double lon;

    @ApiModelProperty(value="纬度",name="lat")
    private Double lat;

    @ApiModelProperty(value="记录新增或更新时的时间",name="rowTime",hidden = true)
    private Date rowTime;

    @ApiModelProperty(value="录入库时间",name="mrowTime",hidden = true)
    private Date mrowTime;

    @ApiModelProperty(value="楼栋单元信息",name="units")
    private List<UnitEntity> units = new ArrayList<>();
}
